//
//  CategoryPageViewController.h
//  ActiveDeck
//
//  Created by BigChicken on 3/3/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AD_Word.h"
#import "PageViewController.h"
#import "WordSort.h"

@interface CategoryPageViewController : PageViewController {
    IBOutlet UIImageView *BG_Image;
    NSMutableArray *catCapImage;
    NSMutableArray *catEdgeImage;
    NSMutableArray *categories;
    NSMutableArray *buttonsSet;
    NSMutableArray *wvArray;
    NSMutableArray *wordsList;
    
    WordSort *wordSortView;
    
    NSArray *startPoints;
    UIButton *Bt_Submit;
    
    int leftCount;
    int UpperLimited;
    
    BOOL noTouch;
    BOOL submitPressed;
}

@property (nonatomic, retain) IBOutlet UIImageView *BG_Image;

- (void)AddButton;

-(void)animateFirstTouchAtPoint:(CGPoint)touchPoint;
-(void)animateWordSortViewToCenter;
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)sortViewSetup:(AD_Word *)word
		  CGLocation:(CGPoint)CGLocation;
- (void)BMove:(int)index;
- (GDataXMLElement *)BuildXmlData;
- (void)initializeSort;
- (void)reset;

@end
